package com.qf.student.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.student.entity.Course;
import com.qf.student.response.R;
import com.qf.student.vo.input.AdminCourseInputVo;
import com.qf.student.vo.input.PageSearchInputVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2022-11-21
 */
public interface ICourseService extends IService<Course> {

    R getCourseInfo(PageSearchInputVo inputVo);

    R getCourseTable(Integer userId);

    R getTeacherCourse(Integer userId);

    R getTeacherCourseTable(Integer userId);

    R getTeacherScoreInfo(PageSearchInputVo inputVo);

    R getAdminCourseInfo(Integer userId, AdminCourseInputVo inputVo);

    R addCourseInfo(Course course, Integer userId);

    R deleteCourse(Integer courseId, Integer userId);

    R getCourseInfoById(Integer courseId, Integer userId);

    R updateCourseInfo(Course course, Integer userId);

}
